// 首页
const home = () => import('@/views/home/index');

// 搜索
const search = () => import('@/views/home/search');

//专区
const content=()=>import('@/views/home/content');

// 商品列表
const goodList = () => import('@/views/home/good-list');

// 私域
const selection = () => import('@/views/home/selection');

// 官方公告
const notice = () => import('@/views/home/notice');

// 官方详情
const noticeInfo = () => import('@/views/home/notice-info');

// 生活专区
const lifeArea = () => import('@/views/home/life-area');

// 金榜专区 - 今日上新
const newArea = () => import('@/views/home/new-area');

// 金榜专区 - 爆品优选
const bestSelling = () => import('@/views/home/best-selling');

// 精选好店
const goldShop = () => import('@/views/home/gold-shop');

// 店铺详情
const shopInfo = () => import('@/views/home/shop-info');

//店铺详情
const shopInfoTwo=()=>import('@/views/home/shop-info-two');

// 商品详情
const good = () => import('@/views/home/good');

// 不发货地区
const noRegion = () => import('@/views/home/no-region');

// 确认订单
const order = () => import('@/views/home/order');

// 地址列表
const address = () => import('@/views/home/address');

// 地址更新
const addressEdit = () => import('@/views/home/address-edit');

// 收银台
const cashier = () => import('@/views/home/cashier');

// 支付结果
const payResult = () => import('@/views/home/pay-result');

// 购物车
const cart = () => import('@/views/cart/index');

// 选择所属区域
const myArea = () => import('@/views/home/my-area');

//区域推荐商家
const areaShop = () => import('@/views/home/areaShop');

// 红包专区
const redPacket = () => import('@/views/home/redPacket');

// 红包列表
const redPacketList = () => import('@/views/home/redPacketList');

// 红包详情
const redPacketDetail = () => import('@/views/home/redPacketDetail');



export default [{
        path: '/',
        redirect: {
            name: 'home',
			keepAlive: true
        }
    },
    {
        path: '/home',
        meta: {
            title: '首页',
			keepAlive: true
        },
        name: 'home',
        component: home
    },
	{
        path: '/selection',
        meta: {
            title: '无忧私域',
        },
        name: 'selection',
        component: selection
    },
	{
		path: '/content',
		meta: {
		    title: ''
		},
		name: 'content',
		component: content
	},
	{
		path: '/search',
		meta: {
		    title: '搜索'
		},
		name: 'search',
		component: search
	},
	{
		path: '/good-list',
		meta: {
		    title: '商品列表',
			keepAlive: true
		},
		name: 'goodList',
		component: goodList
	},
	{
		path: '/notice',
		meta: {
		    title: '官方公告'
		},
		name: 'notice',
		component: notice
	},
	{
		path: '/notice-info',
		meta: {
		    title: '公告详情'
		},
		name: 'noticeInfo',
		component: noticeInfo
	},
	{
		path: '/life-area',
		meta: {
		    title: '生活专区'
		},
		name: 'lifeArea',
		component: lifeArea
	},
	{
		path: '/new-area',
		meta: {
		    title: '新人专享',
			keepAlive: true
		},
		name: 'newArea',
		component: newArea
	},
	{
		path: '/best-selling',
		meta: {
		    title: '爆品优选',
			keepAlive: true
		},
		name: 'bestSelling',
		component: bestSelling
	},
	{
		path: '/gold-shop',
		meta: {
		    title: '精选好店'
		},
		name: 'goldShop',
		component: goldShop
	},
	{
		path: '/shop-info',
		meta: {
		    title: '',
			keepAlive: true
		},
		name: 'shopInfo',
		component: shopInfo
	},
	{
		path: '/shop-info-two',
		meta: {
		    title: '',
			keepAlive: true
		},
		name: 'shopInfoTwo',
		component: shopInfoTwo
	},
	{
		path: '/good',
		meta: {
		    title: '商品详情',
		},
		name: 'good',
		component: good
	},
	{
		path: '/no-region',
		meta: {
		    title: '不发货地区'
		},
		name: 'noRegion',
		component: noRegion
	},
	{
		path: '/order',
		meta: {
		    title: '确认订单'
		},
		name: 'order',
		component: order
	},
	{
		path: '/address',
		meta: {
		    title: '收货地址'
		},
		name: 'address',
		component: address
	},
	{
		path: '/addressEdit',
		meta: {
		    title: '添加地址'
		},
		name: 'addressEdit',
		component: addressEdit
	},
	{
		path: '/cashier',
		meta: {
		    title: '收银台'
		},
		name: 'cashier',
		component: cashier
	},
	{
		path: '/payResult',
		meta: {
		    title: '付款结果'
		},
		name: 'payResult',
		component: payResult
	},
	{
		path: '/cart',
		meta: {
		    title: '购物车'
		},
		name: 'cart',
		component: cart
	},
	{
		path: '/my-area',
		meta: {
		    title: '选择所属区域'
		},
		name: 'myArea',
		component: myArea
	},
	{
		path: '/areaShop',
		meta: {
		    title: '区域推荐商家',
		},
		name: 'areaShop',
		component: areaShop
	},
	{
		path: '/redPacket',
		meta: {
		    title: '领红包'
		},
		name: 'redPacket',
		component: redPacket
	},
	{
		path: '/redPacketList',
		meta: {
		    title: '红包列表'
		},
		name: 'redPacketList',
		component: redPacketList
	},
	{
		path: '/redPacketDetail',
		meta: {
		    title: '红包详情'
		},
		name: 'redPacketDetail',
		component: redPacketDetail
	},
]